--[[
 -- *名称:GameLayerPart
 -- *描述:游戏层
 -- *版权:Copyright © 2016-2018 深圳市三只小熊科技有限公司 版权所有
 -- *作者:Administrator
 -- *创建日期:2017-09-25
 -- *修改日期:2017-09-25
 ]]
local CURRENT_MODULE_NAME = ...
local GameLayerPart = class("GameLayerPart",PokerPartBase) --登录模块
GameLayerPart.DEFAULT_PART = {
	"HandcardPart",		-- 手牌
	"OutCardPart",      -- 出牌层
	"DealcardPart", 	-- 发牌
	"HeadViewPart", 	-- 玩家头像
	"ClockPart",        -- 闹钟层
	"CardOptPart",      -- 手牌操作层
	"TuoGuanPart",   	-- 托管层
	"ToolBarPart",   	-- 菜单栏  
	"CallLordPart", 	-- 叫抢地主按钮
	"CallScorePart", 	-- 叫分按钮
	"ReadyPart", 		-- 准备按钮
	-- "ChatPart",   		-- 聊天栏
	"DdzChatPart",   	-- 聊天栏
}
GameLayerPart.DEFAULT_VIEW = "gamelayer"

---
 -- [ctor 默认part构造方法]
 -- @DateTime 2017-09-20
 -- @param    owner [description]
 -- @param    data [description]
 -- @return    [description]
 --
function GameLayerPart:ctor(owner, data)
	Log.d("GameLayerPart:ctor");
    GameLayerPart.super.ctor(self, owner, data)
    self._data = data;
end


---
 -- [activate 默认激活该part调用方法]
 -- @DateTime 2017-09-20
 -- @param    data [description]
 -- @return    [description]
 --
function GameLayerPart:activate(data)
	Log.d("GameLayerPart:activate");
	GameLayerPart.super.activate(self, CURRENT_MODULE_NAME);

	self:activatePart("HeadViewPart");
	self:activatePart("HandcardPart");
	self:activatePart("ToolBarPart");
	self:activatePart("CallLordPart");
	self:activatePart("CallScorePart");
	self:activatePart("OutCardPart");
	self:activatePart("TuoGuanPart");
	self:activatePart("ChatPart",data);
	self:activatePart("DdzChatPart");
	self:activatePart("ClockPart");
	self:activatePart("CardOptPart");
	self:activatePart("ReadyPart");
	self:activatePart("DealcardPart");
	
end

---
 -- [deactivate 销毁该part调用方法]
 -- @DateTime 2017-09-20
 -- @return   [description]
 --
function GameLayerPart:deactivate()

end

---
 -- [getPartId 获取该part的partId]
 -- @DateTime 2017-09-20
 -- @return   [description]
 --
function GameLayerPart:getPartId()
	-- body
	return "GameLayerPart"
end

function GameLayerPart:backEvent(  )
	
end

---
 -- 事件监听配置
 -- @type {Object}
 --
GameLayerPart.eventFuncMap = {

};



return GameLayerPart 